An approximate observer for a class of nonlinear systems