Stability of monatomic and diatomic quasicrystals and the influence of noise.