On the mechanism of spiking and bursting in excitable cells