The development of the counterfactual imagination