On the Stability of Isolated and Interconnected Input-Queued Switches under Multiclass Traffic