Switching systems with dwell time: Computing the maximal Lyapunov exponent