Elemental analyzers for battery testing