N-dimensional extension of unfold-PCA for granular systems monitoring