Modelling of microstructural features in Y-Ba-Cu-O superconductors