A constrained gentlest ascent dynamics and its applications to find excited states of Bose-Einstein condensates