Search for resonant t t-bar production in proton-proton collisions at sqrt(s) = 8 TeV