Thue's equation over function fields