Single step electrosynthesis of NiMnGa alloys