Role of Phenylpropanoids and Flavonoids in Plant Resistance to Pests and Diseases