Adverse effects of falciparum and vivax malaria and the safety of antimalarial treatment in early pregnancy: a population-based study