Filter Design for System Modeling, State Estimation and Fault Diagnosis