Numerical simulation of shock waves at microscales using continuum and kinetic approaches