Body stiffness is a mechanical property that facilitates contact-mediated mate recognition in Caenorhabditis elegans