Life cycle of biogas from organic wastes