Dynamics of scientific publications