Observability of linear switched systems