Theoretical approach studies and experimental evidences of x-ray k-absorption spectroscopic study of copper and cobalt complexes