Extreme-ultraviolet Ramsey-type spectroscopy