Molecular Dynamics Simulations of Shock in Silicon and Diamond