An Efficient Algorithm for Computing Interventional Distributions in Latent Variable Causal Models