1D kinetic study of pinch formation in a dense plasma focus: Transition from collisional to collisionless regimes