Impact of demography and population dynamics on the genetic architecture of human longevity