Mark Schroeder resigning as Buffalo comptroller to be state DMV chief