Contribution of a Smart Transformer in the Local Primary Control of a Microgrid