A SMART Data Analysis Method for Constructing Adaptive Treatment Strategies for Substance Use Disorders