Cosmology in 2D: the concentration-mass relation for galaxy clusters