Search for dark matter particles in proton-proton collisions at sqrt(s) = 8 TeV using the razor variables