Structural stability of Bi-based cuprates