Understanding the physical properties of CdCl2 treated thin CdSe films for solar cell applications