How outcrossing hermaphrodites sense the presence of conspecifics and suppress female allocation