Z-graded polynomial identities of the Grassmann algebra