Dynamic analysis of gene expression trajectories in sepsis and severe COVID-19