How a little shaming and a lot of patience convinced Chinese factories to clean up