On the diagonal stability of a class of almost positive switched systems