Development of thermal energy storage technology using metal hydrides