Causal Calculus in the Presence of Cycles, Latent Confounders and Selection Bias