The two metallicity groups of the globular cluster M 22: a chemical perspective