Incorporation of H+ into Mg-doped LiNbO3