A Survey on Large Language Models for Automated Planning