Laser cavities and polarization optics for soft X-rays and the extreme ultraviolet