Theoretical study of spectroscopy and dissociation of SO2Br2 and SO2I2