Ukraine prepared to go to court if talks with Iran over downed plane fail