Determination of state-of-charge and state-of-health of batteries by fuzzy logic methodology