Hydrogen storage by direct electrochemical hydriding of Mg-based alloys