Between law and profession: the origins of informed consent (1840-1900)