Search for supersymmetry in pp collisions at s =8 TeV in final states with boosted W bosons and b jets using razor variables