K-absorption spectroscopic studies of some copper and cobalt complexes by theoretical and experimental approach