Optical excitations and coupling constants in FeO42− and CrO44− complexes in oxides: Density functional study