Stochastic gradient descent estimation of generalized matrix factorization models with application to single-cell RNA sequencing data