Calculation of the space charge in electrodeposition from a binary electrolyte