Causal Discovery in Heterogeneous Environments Under the Sparse Mechanism Shift Hypothesis