Analogy between Y2Ba4Cu8O16−x and Bi4Ca2Sr4Cu4O16+x