Mono and stereoscopic image analysis for detecting the transverse profile of worn-out rails