Particle source and radial electric field shear as the factors affecting the LH-transition possibility and dynamics in a tokamak