Warfare, sex ratio and polygyny