The where and how of attention-based rehearsal in spatial working memory