Particle beam-induced reactions versus thermal degradation in PMDA-ODA polyimide