Search for new physics in events with same-sign dileptons and b jets in pp collisions at root s=8 TeV