Life-history traits and habitat availability shape genomic diversity in birds: implications for conservation