Ancient DNA and the population genetics of cave bears (Ursus spelaeus) through space and time