Cadmium imidazolate frameworks with polymorphism, high thermal stability, and a large surface area.