A direct calculation of the tunnelling current. III. Effect of localized impurity states in the barrier