Inferring the kinetics of stochastic gene expression from single-cell RNA-sequencing data