The CMS electromagnetic calorimeter barrel upgrade for High-Luminosity LHC