Magnetic order and spin dynamics in substituted spinel Mg1+xMn2-xO4