An analytical solution of temperature in a nuclear waste repository