The physics of jets