the maximum being at certain depth in the thickness