India teach gritty Proteas hard lessons in tough Test