Spatial segregation for a competition-diffusion system with inhomogeneous Dirichlet boundary conditions