Optimal reinsurance and investment problem for an insurer with counterparty risk · Study