Photoabsorption and photofragmentation of CS2 in the energy regions of the C 1s and S 2p thresholds