Search for supersymmetry using razor variables in events with b-tagged jets in pp collisions at root s=8 TeV