Technical and economic challenges to electricity quality regulation