Intermediate Hamiltonian Fock-space coupled-cluster method: Excitation energies of barium and radium