Self-mode locking of continuous-wave solid-state lasers by a nonlinear Kerr polarization modulator