Microscope eyepiece with adjustable refractive index