Search for top quark decays via Higgs-boson-mediated flavor-changing neutral currents in pp collisions at sqrt(s) = 8 TeV