Capacity Analysis for Gaussian and Discrete Memoryless Interference Networks