Stress heterogeneity of thermally grown polycrystalline nickel oxide layers