Causal models of multilevel selection