Untangling stability and gain modulation in cortical circuits with multiple interneuron classes