CV1 in the globular cluster M 22: confirming its nature through X-ray observations and optical spectroscopy