Variations of the solution to a stochastic heat equation