Abundance of organic compounds photochemically produced in the atmospheres of the outer planets