population dynamics definition