Risk factors for ectopic pregnancy in the Taiwanese population: a retrospective observational study