Fix doctests that use old gradient function names.

Fixed most of the doctests that used the old gradient names.

Some doctests still fail for `set_fixed_gradient_boundaries`. @SiccarPoint should review these doctests as, I think, he wrote them.