Sorption with oscillations in solid polymers