Assessment of inherently safer alternatives in biogas production and upgrading