On the electrostatic charging of the cometary nucleus