Zero-phonon lines in CaF2 and SrF2