Reigning champion Caroline Wozniacki has been knocked out of the WTA Finals in Singapore, after being beaten in three sets by Elina Svitolina, who booked her place in the semi-finals.