A passivity-based multilevel active rectifier with adaptive compensation for traction applications