Why LLMs struggle to find the information in the middle of long documents