Electrical network dynamic models with application to modal analysis of harmonics