Modeling and control of a half-bridge single-phase Back-to-back converter for grid-tied applications