Role of the CMS electromagnetic calorimeter in the hunt for the Higgs boson through the two-gamma decay channel