Ajinkya Rahane's maiden Test century helped India claim a huge first-innings lead on day two of the second Test against New Zealand in Wellington.