Dual-metal zeolitic imidazolate frameworks and their derived nanoporous carbons for multiple environmental and electrochemical applications