Buffalo supermarket shooter to be sentenced to life in prison