Sojourn time in an union of intervals for diffusions