Slowness estimation from sonic logging waveforms