Fitness costs, compensation and epistasis in antimalarial drug resistance evolution