Unsupervised EHR-based Phenotyping via Matrix and Tensor Decompositions