Search for third-generation squarks in all-hadronic final states at the LHC with the ATLAS detector