Measurement of the γγ partial width of the χ2 charmonium resonance