The Noisy-Logical Distribution and its Application to Causal Inference