Conservation laws, solitons, breather and rogue waves for the (2+1)-dimensional variable-coefficient Nizhnik–Novikov–Veselov system in an inhomogeneous medium