Derivation of a Cell-Based Mathematical Model of Excitable Cells