Synthesis of stable metal-containing porous organic polymers for gas storage