Scaling of capillary trapping in unstable two-phase flow: Application to CO2 sequestration in deep saline aquifers