Kevin Pietersen has been ruled out of the third Test with New Zealand in Auckland because of a knee injury.