Generalized Independent Noise Condition for Estimating Causal Structure with Latent Variables