Preparation and characterization of low resistive p-CdTe, n-SnO2 thin films and their application in solar cells