Analysis of accidents in biogas production and upgrading