Metal doped layered MgB2 nanoparticles as novel electrocatalysts for water splitting