Condition monitoring for rail components