Structure and morphology of ion-implanted polyimide films