Modeling brain activity patterns for visual working memory