Near-Field Communications: A Degree-of-Freedom Perspective