Morse-type theory for integrable Hamiltonian systems with tame integrals