Ben Stokes says England are prepared to avenge their defeat at Trent Bridge in the third Test against South Africa at The Oval.