Error models for nonlinear observers