Modulation of Hierarchical Pores in Metal-Organic Frameworks for Improved Dye Adsorption and Electrocatalytic Performance.