New York state troopers will train for electric car crashes