AMENDED AND RESTATED CUSTODY AGREEMENT by and between POWERSHARES and THE BANK OF NEW YORK MELLON