Mechanism of collision-induced intersystem crossing in CO