Optimizing Investments in Malaria Treatment and Diagnosis