New Zealand on the back foot after Azhar Ali, Asad Shafiq centuries