Observation of charge-dependent azimuthal correlations in pPb collisions and its implication for the search for the chiral magnetic effect