Single-, double-, and triple-photoionization cross sections of carbon monoxide (CO) and ionic fragmentation of CO+, CO2+, and CO3+