Simulation of Thermal and Optical Performance of PV Modules