On phase separation in systems of coupled elliptic equations: Asymptotic analysis and geometric aspects