Exciton condensation in potential traps