On stable space dependent stationary solutions of a competition system with diffusion