SMART designs in observational studies of opioid therapy duration