Rare earth ion-host crystal interactions. III. Three-parameter theory of crystal fields. Technical report