Smart City to improve power quality