Systematic analysis of the spectroscopic characteristics of 3d ions in a free state and some cubic crystals