Optimal sampling in damage detection of flexural beams by continuous wavelet transform