Time-implicit simulation of particle-fluid systems