Detecting and Measuring Confounding Using Causal Mechanism Shifts