Energy, range dynamics and global species richness patterns: reconciling mid-domain effects and environmental determinants of avian diversity.