Statistics for Online condition monitoring of lithium-ion and lead acid batteries for renewable energy applications