Techno-economical analysis on the production of hydrogen