Thermodynamics of Gallium Arsenide Electrodeposition