Measurement of electrons from beauty-hadron decays in p-Pb collisions at root(NN)-N-S=5.02 TeV and Pb-Pb collisions at. root(NN)-N-S=2.76 TeV