Relative invariants of quivers of tame type