On the boundary conditions for the vector potential formulation in electrostatics