Particle precipitation during ICME-driven and CIR-driven geomagnetic storms