Processing nanoporous organic polymers in liquid amines