Stability of a class of switched positive linear time-delay systems