The mass—Energy balance of anaerobic methane production