Anaerobic digestion of wastes containing pyrolignitic acids