Babar hammers ton as Pakistan fight back against Australia in second Test