improved get_ticklabels kwarg

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