Institutes, research and the professionalisation of historians from the nineteenth to the twentieth century