Life prediction of batteries for selecting the technically most suitable and cost effective battery