Interactions between attention, context and learning in primary visual cortex