Generalized output regulation problem for a class of nonlinear systems using error feedback