Taiwan is considering extending mandatory military service for young people following Russia's invasion of Ukraine.