"Perchance to dream". Personality modifications and criminal liability: a nineteenth-century debate between psychiatry and law