Optical Modeling and Simulation of Thin-Film Photovoltaic Devices door