Production of moldings for lithium ion batteries