The theory of spin-correlated crystal fields: Application to Gd3+ in C3h symmetry