An Efficient Implementation of a Reconfigurable Battery Stack with Optimum Cell Usage