Determination of anthocyanins and proanthocyanidins (PAs) contents