A Bayesian oblique factor model with extension to tensor data