Local invariants attached to Weierstrass points