Observability of Switched Linear Systems: A Geometric Approach