Evaluation of continuum stress in atomistic simulation