Search for direct pair production of supersymmetric top quarks decaying to all-hadronic final states in pp collisions at sqrt(s) = 8 TeV