Subsidies, quality, and the regulation of nursing homes