A causal inference tool for evaluating natural experiments in population health