Independent domains of the Sdc-3 protein control sex determination and dosage compensation in C. elegans