Green synthesis of magnesium oxide nanoparticles and their antibacterial activity