Active distribution grids: A MatLab-Simulink tool for energy performance analysis