Application of Tilt Sensor in Railway Monitoring