The risk of distant metastases in patients with gynecologic cancers after surgery: a population-based study