The Roots of International Perceptions: Simulating US Attitude Changes Towards China with LLM Agents