From Selection to Generation: A Survey of LLM-based Active Learning