Comprehensive Lyapunov functions for linear switching systems