Macrolide resistance and molecular types of Treponema pallidum causing primary syphilis in Shanghai, China.