Effect of inhomogeneous distribution of ion channels on collective electric activities of neurons in a ring network