Online state of charge and temperature distribution monitoring in batteries for automotive applications