Comparative study between passive and active front-end inverters with respect to inverter and cable losses