Adds kwarg `which` to Axis.get_ticklabels, Axes.get_xticklabels,
and Axes.get_yticklabels to match the pattern in other tick-related
functions

Closes #1715
Merge pull request #2628 from tacaswell/xticklabels_kwarg

improved get_ticklabels kwarg