Influence of structural changes induced by co-doping in YBCO on superconductivity