Gravar-mail: Optimal neural coding in networks of heterogeneous neurons