Dependence of efficiency of thin-film CdS/CdTe solar cell on optical and recombination losses