Optical constants determination of samarium, holmium, and erbium in the 1.5-850 eV spectral range using a transmittance method