Optimal reinsurance and investment in a jump-diffusion financial market with common shock dependence