Intensity of malaria transmission and the evolution of drug resistance