Diagnosis and treatment of malaria