Large Language Model Agent: A Survey on Methodology, Applications and Challenges