The origin of male haploid genetic systems and their expected sex ratio