Iga Swiatek came from a set down to beat Daria Kasatkina and reach the quarter-finals of the Qatar Open.