Density and momentum dependence of the coupling strengths for scalar and vector fields