Optical properties of small polarons from dynamical mean-field theory