Comprehensive theory of dispersion in graded-index optical fibers