A molecular perspective on induced charges on a metallic surface