Excited states of exciton-polariton condensates in 2D and 1D harmonic traps