The elliptic gamma function