Early referral to a palliative team improves end-of-life care among gynecological cancer patients: a retrospective, population-based study