Improving the integration of photovoltaic generation on distribution networks via advanced control of inverters