Capacitor current minimization and losses analysis in modular multilevel converter for HVDC applications