Wavelet analysis for railway wheelflat detection