Breeding plants resistant to insects