China signs deal to build nuclear reactor in Pakistan