Chain-oxygen vibrations in YBa2Cu3O7-δ and YBa2Cu4O8