Calculating Crystal Field Stabilization Energy