Design and comparison of two multilevel converters for flicker compensation