Synthesis, structure and properties of layered Pr2MoO6-based oxymolybdates doped with Mg.