Optimization of Costs and Self-Sufficiency for Roof Integrated Photovoltaic Technologies on Residential Buildings