Theoretical study of Z isomers of A-type dimeric proanthocyanidins substituted with R=H, OH and OCH3: stability and reactivity properties