Measurement of the top-quark mass in all-jets ttbar events in pp collisions at sqrt(s) = 7 TeV