Improving the performance of CdTe QDSSCs by chloride treatment and parameter optimization