The plasma physics of shock acceleration