Non-perturbative method for spin-Hamiltonian parameters and its applications to Co 2 + ions in CaF 2 and CdTe | Synapse