Text this: Smart Monitoring of Flat Wheel in Railway Using Optical Sensors