Formation of cdte by electrodeposition: Thermodynamic aspect