Restructuring medium voltage distribution grids