Sarah Palin takes the stand in NYT defamation trial