Wormhole formation and compact dissolution in single‐ and two‐phase CO2‐brine injections