Characterization and construction of a low-cost electrolyzer