A 24-year-old man presents to a remote clinic with painless genital ulceration and a generalised maculopapular rash on the trunk and palms. He has had multiple sexual partners and inconsistent condom use. Which single investigation is most appropriate to confirm the presumptive diagnosis?