Vatican reaches pact with China on naming bishops