Optimal mean–variance investment and reinsurance problems for the risk model with common shock dependence