Accurate simplified dynamic model of a metal hydride tank