Text this: Wavelet-based encoding scheme for controlling size of compressed ECG segments in telecardiology systems