Nonparametric identification of dynamic models with unobserved state variables