Smart battery pack for electric vehicles based on active balancing with wireless communication feedback