The relation between ternary fission and cluster decay