Digital Simulation of Operation of a Three Phase Matrix Converter