The effects of high electronic energy loss on the chemical modification of polyimide