Integral points on elliptic curves over function fields