A computer simulation method for sintering in three-dimensional powder compacts