Opioid prescribing for patients with cancer in the last year of life: a longitudinal population cohort study