Early warning mechanism for rail faults wins $250k grant