Biogas analysis