Tough love led to S Africa triumph: Elgar