An intelligent reversible watermarking system for authenticating medical images using Wavelet and PSO