Bose-Einstein condensation in the presence of a uniform field and a pointlike impurity