Effect of the external cavity length in the dynamics of a semiconductor laser with optical feedback