Smiling Sri Lanka stun South Africa to seal historic series win