Text this: Cost control in nursing homes by means of economies of scale and care profile optimization