Linking Molecular Switches to Platinum Electrodes Studied with DFT