Temperature dependence of the electric-field gradient in hcp-Cd from first principles