Structural transition in Mg-doped LiMn2O4: a comparison with other M-doped Li-Mn spinels