Caenorhabditis elegans sperm carry a histone-based epigenetic memory of both spermatogenesis and oogenesis