Shoaib Malik to replace Afridi in second Test versus Australia