Diagnosis and management of ectopic pregnancy