On the Optimality of Treating Interference as Noise: Compound Interference Networks