Tobacco giants near $24bn settlement over long-running Canadian lawsuit