India beat South Africa, sweep Test series