The Influence of Japanese Immigration Policies on the Duration of Foreign Nationals' Residency in Japan