Duality of N = 2 heterotic-type I compactifications in four dimensions