Anderson, Stokes, Rashid in squad for second Test against Pakistan