Lattice dynamical investigation to hydrogen in metals in relation to their application in energy storage