IMAGE ANALYSIS FOR DETECTING THE TRANSVERSE PROFILE OF WORN-OUT RAILS