The brain computes an audiovisual coherence index before deciding to fuse sensory inputs