Hasse invariant of an elliptic curve