Optical Tuning of Dielectric Properties of LiNbO3:Mg in the Terahertz Range