Correlation between pattern density and linewidth variation in silicon photonics waveguides