The structure of working memory and how it relates to intelligence in children