Environmental analysis of biogas systems