Machine learning method could speed the search for new battery materials