A Generalised CIR Process with Externally-Exciting and Self-Exciting Jumps and Its Applications in Insurance and Finance