Thickness measurement of multi layered materials