Sensing and determination of contact potential difference between two metals using an actuating capacitor