GOCPT: Generalized Online Canonical Polyadic Tensor Factorization and Completion