Factors associated with syphilis infection: a comprehensive analysis based on a case-control study