Australia fight back after Malan, Bairstow centuries