Method for separating volatile substances from material mixtures and device for producing polyarylene sulfides