Sequential causal inference: Application to randomized trials of adaptive treatment strategies