Intrinsic and extrinsic effects on the electrostatic field at the surface of Bi2Se3