Behavior of the density of states in one-dimensional disordered systems near the edges of the spectrum