of the semiconductor substrate or a semiconductor layer