Chasing millions in Medicaid dollars, hospitals buy up nursing homes