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