Dilatometric and mass spectrometric investigations on lithium ion battery anode materials