New York sheriff defends giving inmates access to tablets in jail