Facile synthesis of MgO and Ni-MgO nanostructures with enhanced adsorption of methyl blue dye