Electrochemical hydrogen storage characteristics of thin film MgX (X = Sc, Ti, V, Cr) compounds