Influence of MgO doping on the structure of monocrystalline LiNbO3