On the problem of residual generation for fault detection in nonlinear systems and some related facts