Optimization of structural, optical and electrical properties of CdZnTe thin films with the application of thermal treatment