Excited states of gaseous ions