Weierstrass jump sequences and gonality