Origins of spontaneous activity in the degenerating retina