Power Electronics and its Applications in Smart Grids