Measurement of the relative prompt production rate of χ c2 and χ c1 in pp collisions at $\sqrt{s} = 7\ \mathrm{TeV}$