A Dynamic Model for Direct and Indirect Matrix Converters (Advances in Power Electronics, 2014)