Understanding the Capabilities of Large Language Models for Automated Planning