Generalized Frenkel-Kontorova model for structural modulations in bismuth high-Tc superconductors and related compounds.