Material and energy balances of an integrated biological hydrogen production and purification system and their implications for its potential to reduce greenhouse gas emissions.