Foreign firms scramble to fix Iran’s refineries once sanctions end