Case study for obtaining power quality grid-code compliance