Frictionless multiple impacts in multibody systems. II. Numerical algorithm and simulation results