Electro-Optic Property of Mg2+/Er3+-Codoped LiNbO3 Crystal: Mg2+ Concentration Threshold Effect