Singlet oxygen-mediated synthesis of malarial chemotherapeutic agents