A Method for the order reduction of linear switching systems