Gravar-mail: Modeling pathological brain rhythms: constructing a neural mass model from single cell dynamics