Spin thermodynamics applied to pure nuclear quadrupole resonance for an inhomogeneously broadened line in a spin-3/2 system