Chemical degradation of polyimide and polysulfone films under the irradiation with heavy ions of several hundred MeV