Former Troop D captain named next New York State Police