Application of threshold track detectors in studying the interaction of intermediate-energy 18O ions with light and heavy targets