Transformation of electrical energy into hydrogen and its storage