Local And Centralized Control of Multi-Terminal Dc Grids For Secure Operation of Combined Ac/Dc Systems