The effects of diffusion and spatial variation in Lotka–Volterra competition–diffusion system II: The general case