C. elegans males optimize mate-choice decisions via sex-specific responses to multimodal sensory cues