Using the Tools of Cognitive Science to Understand Large Language Models at Different Levels of Analysis