First-principles studies on the structural transition of ZnO nanowires at high pressure