Integer points and the rank of Thue elliptic curves