Molecular basis for mutation in a surface protein expressed by malaria parasites