Automated determination of total polyphenols in apple juice