Text this: Online condition monitoring of lithium-ion and lead acid batteries for renewable energy applications