Identification of time-varying counterfactual parameters in nonlinear panel models