Constraining the Chiral Magnetic Effect with charge-dependent azimuthal correlations in Pb-Pb collisions at √sNN = 2.76 and 5.02 TeV