Mechanical experiments as a tool for study of swelling-deswelling and structural properties of porous polymers