Intrinsic dimension of data representations in deep neural networks