A Survey on LLM-based Multi-Agent System: Recent Advances and New Frontiers in Application