Performance and operation of the CMS electromagnetic calorimeter