Conversion of manure to bioenergy and biochemicals via anaerobic digestion