Spatially-adaptive wavelet-based techniques for despeckling of synthetic aperture radar and medical ultrasound images