Wavelet-based generation of spectrum-compatible time-histories