Genetics of rare and endangered birds