Pakistan win toss elect to bat in second test