Brain signals for spatial attention predict performance in a motion discrimination task