The interaction-sensitive states of a trapped two-component ideal Fermi gas and application to the virial expansion of the unitary Fermi gas