Stress-induced flavonoid biosynthesis and the antioxidant machinery of plants