Mathematical analysis of a mean field model of electroencephalographic activity in the neocortex