A 30-year-old patient presents with fever, chills, and sweats after recent travel to a malaria-endemic area. Which test is the gold standard for diagnosing malaria?