Splitting of 3-manifolds and rigidity of area-minimising surfaces