Inversion of nonlinear time-varying systems