Simulation of viscoelastic and viscoelastoplastic die-swell flows