What military alliance did the Japanese join in the First World War?