A Survey of AI for Materials Science: Foundation Models, LLM Agents, Datasets, and Tools