Theory of cw passive mode-locking of solid state lasers with addition of nonlinear index and group velocity dispersion