Bose-Einstein condensation of dipolar excitons in double and single quantum wells