A generic fault detection and diagnosis approach for pneumatic and electric driven railway assets