Opioid prescribing requirements to minimize unused medications after an emergency department visit for acute pain: a prospective cohort study