Techno-economic analysis and optimization of green hydrogen production and liquefaction with metal hydride storage