The effect of an electrolyte on phase separation in colloids