Carbon dioxide capture and conversion by an acid-base resistant metal-organic framework