How to Make Causal Inferences Using Texts