Electrostatic traps for dipolar excitons