Optimal design methodology of metal hydride reactors for thermochemical heat storage