A semi-Lagrangian method to solve the nongray phonon Boltzmann transport equation