Generating power using biogas