Structure modulation, selective dye adsorption and catalytic CO2 transformation of four pillared-layer metal-organic frameworks