Digital Twin Enabled Intelligent Fault Detection in Hall Effect Rotary Encoder for Industry 4.0 Applications