A statistical mechanical model of cell membrane ion channels in electric fields: The mean-field approximation