Studies on the production of biogas and changes in the chemical constituents of organic materials during anaerobic fermentation