Probing functionalized interfaces for carbon capture using spectroelectrochemistry