Mean values of the Riemann zeta-function at the Gram points