Generation modelling of residential rooftop photovoltaic systems and its applications in practical electricity distribution networks