Biogas as an energy vector