High efficiency off-grid hydrogen generation