Advanced control of matrix converter drive with active damping of the input resonance