Methods for Atomistic Simulations of Linear and Nonlinear Damping in Nanomechanical Resonators