Williamson hits double hundred as New Zealand take charge of first Test