PMU-based power system analysis of a medium-voltage distribution grid