Continuous-time compartmental switched systems