Valuation of CDS counterparty risk under a reduced-form model with regime-switching shot noise default intensities