Viscoelastic properties of chalcogenide glasses and the simulation of their molding processes