Multiresolution analysis and chemometrics for pattern enhancement and resolution in spectral signals and images