Influential factors of postoperative pain trajectories in patients receiving intravenous patient-controlled analgesia: a single-centre cohort study in Taiwan