Similar Items: A Dynamic Model for Direct and Indirect Matrix Converters