Synthesis of terephthalic, isophthalic, and phthalic acids from methane and carbon dioxide