Energy calibration and resolution of the CMS electromagnetic calorimeter in pp collisions at √s = 7 TeV