Generic Diagnostic Framework for Anomaly Detection—Application in Satellite and Spacecraft Systems