Triad Constraints for Learning Causal Structure of Latent Variables