NGOs, the state, and legitimacy in contemporary China