Ion induced modification of polymers at energies between 100 keV and 1 GeV applied for optical waveguides and improved metal adhesion