Vortex dynamics and pinning properties analysis of MgB2 bulk samples by ac susceptibility measurements