Quantifying how much sensory information in a neural code is relevant for behavior