Credit risk and rating assignments with parent-subsidiary links