Discovering latent phenotypic signatures of preterm birth and genetic risk using tensor decomposition on electronic health records