Power system stability analysis with large penetration of distributed generation