Fully tensorial approach to hypercomplex neural networks