Search for supersymmetry with razor variables in pp collisions at sqrt(s) = 7 TeV