Optimization of internal heat exchangers for hydrogen storage tanks utilizing metal hydrides