Smart inverter operation in distribution networks with high penetration of photovoltaic systems