Dynamics of semiconductor ring lasers