A crucial role for spatial distribution in bacterial quorum sensing