Search for heavy neutral Higgs bosons in two-doublet models