The influence of habitat fragmentation on genetic diversity of a rare bird species that commonly faces environmental fluctuations