World number one Iga Swiatek advanced to the round of 16 at the US Open by convincingly defeating her longtime friend, Kaja Juvan.