Dynamics of lineage commitment revealed by single-cell transcriptomics of differentiating embryonic stem cells