Mechanical and structural behavior of a swelling elastomer under compressive loading