An Improved Method of Controlling IGBT Modules Using an Optimized Gate Current Waveform