Gamma functions for function fields and Drinfeld modules