Current detecting device and a pwm inverter using the same