Investigation of the formation of M2+-molecular ions in sputtering processes