The electrostatic charge of interplanetary grains