Geoefficiency and energy partitioning in CIR-driven and CME-driven storms