Power quality enhancement