Moment model and boundary conditions for energy transport in the phonon gas