Ashleigh Barty produced a great performance to beat the defending champion Elina Svitolina to claim the WTA Finals trophy in Shenzen in straight sets.