Why Does the Effective Context Length of LLMs Fall Short?