Spontaneous magnetostriction in the Gd–Y system: analysis of phase transformations