Viewing and doing: similar cortical mechanisms for perceptual and motor learning