TransPimLib: A Library for Efficient Transcendental Functions on Processing-in-Memory Systems