Quantum mechanical method for estimating ionicity of spinel ferrites