Synthesis of porous metal phosphonate frameworks for applications in gas separation and storage