Aerogels with nanoporous polymeric crystalline phases