Sojourn time distributions in non-product queueing networks