How competitive intransitivity and niche overlap affect spatial coexistence