Structural, optical and magnetic characterizations of Mn-doped MgO nanoparticles