Sensory coding and causal impact of mouse cortex in a visual decision