Strong correlations, frozen-phonons and double-well potential in the Cu O chains of YBa2Cu3O7−δ: An exact diagonalization approach