Galvanostatic deposition of thin films of cadmium and tellurium