Forces from Libya's rival eastern and western administrations have participated in joint US special forces exercises for the first time.