Passive Q-switching of an all-fiber laser induced by the Kerr effect of multimode interference.