Quadratic optimization for infinite-dimensional linear differential difference type systems: syntheses via the Fredholm equation