Investigation of FACTS devices to improve power quality in distribution networks