Generalized Adjustment Under Confounding and Selection Biases