Microstructural study of YBaCuO in the presence of impurities