Tensor Formulation of Ensemble-Based Background Error Covariance Matrix Factorization