Ecological analysis of a typical farm-scale biogas plant in China