Nicholls century spurs New Zealand fight back on first day of 2nd Test