LongCite: Enabling LLMs to Generate Fine-grained Citations in Long-context QA