Factors affecting the formation of red wine pigments