Measurement of spin correlation in top-antitop quark events and search for top squark pair production in pp collisions at s =8TeV using the ATLAS detector