Searches for heavy Higgs bosons in two-Higgs-doublet models and for t →ch decay using multilepton and diphoton final states in pp collisions at 8 TeV