Gravar-mail: A Generalized ideal observer model for decoding sensory neural responses