Adaptation of a photovoltaic energy balance model for rooftop applications