Text this: Hermaphrodites and the medical invention of sex