Anaerobic fermentations of agricultural residues to carboxylic acids