The impact of context on pattern category learning and representation