Physics of shock waves in gases and plasmas