Keegan Petersen shines as South Africa seal series win against India