Modeling, Analysis And Advanced Control Of Voltage- And Current-Source Converters In Renewable Energy-Based Active Distribution Systems