Text this: Analysis and design of a voltage regulator based on an AC-to-AC converter