Control and Dynamics in Power Systems and Microgrids