Selection-for-action emerges in neural networks trained to learn spatial associations between stimuli and actions