Assessing and Understanding Creativity in Large Language Models