Tuberculosis, social inequality, and the hospital in nineteenth-century Scotland