Characterization of ion-beam modified polyimide layers