Counterfactual MDPs: Planning Beyond Direct Control