Fault tolerant control for switched linear systems