Fragmentation dynamics of ion-pair states of carbon monoxide in electron collisions through direct and indirect excitation.