Analysis of Optical and Recombination Losses in Solar Cells