Applications of metal hydrides