Numerical Simulation of Building-Integrated Photovoltaic Systems