Wave profile measurement by wavelet transform