Simulation and Implementation of Two-Level and Three-Level Inverters by MATLAB and RT-LAB