Microporous networks of high-performance polymers: Elastic deformations and gas sorption properties