Modeling and simulation of grid-connected hybrid AC/DC microgrid