what is the definition of population dynamics