Rational design of a triiodide-intercalated dielectric-switching hybrid for visible-light absorption