Production of negative electrodes for lithium-ion batteries