Relationship between microstructure and optical properties in high Tc superconductors