How urbanization affects residents’ health risks: evidence from China