Determinants of genetic diversity in sticklebacks