Biorefineries of proanthocyanidins