Bifunctional Behavior of a Porphyrin in Hydrogen-Bonded Donor–Acceptor Molecular Chains on a Gold Surface