Excitation of discrete particle-unbound states in heavy-ion collisions