Text this: Modeling and simulation of an ac microgrid for harmonics study