Magnetic field dependent optical dephasing in LaF3:Er3+