Dynamics of drug resistance evolution in malaria parasites.