On the evolution of sex determination and the sex ratio in haplodiploid populations