Residual Generation Design for Dynamic System Fault Detection