New York State Writes Down Value of Tesla Plant in Buffalo