Environmental, pharmacological and genetic influences on the spread of drug-resistant malaria