On the design of approximate state estimators for nonlinear systems