Developing chemically stable metal-organic frameworks for clean energy technologies