The capabilities of Iran’s oil industry, from sophisticated engineering to laying pipeline, have sharpened during years of isolation, offering prospects of competition and cooperation for European and U.S. firms.