Adult sex ratios: causes of variation and implications for animal and human societies