Excitation energies from thermally assisted-occupation density functional theory: Theory and computational implementation.