Improving ICD-based semantic similarity by accounting for varying degrees of comorbidity