Effects of magnetic field and pulse potential on hydrogen production via water electrolysis