Preparation, characterization and comparative electrochemical studies of MgMXMn2-XO4 (x=0, 0.5; M= Ni/Co)