Anastasija Sevastova is through to her third WTA Tour final of the year after beating US Open champion Naomi Osaka to reach the showpiece at the China Open.