Thermal and mechanical stability of zeolitic imidazolate frameworks polymorphs