Critical factors of vanillin assay for catechins and proanthocyanidins