RESIDUAL ENERGY ESTIMATION OF BATTERY PACKS FOR ENERGY