Measurement of nanomechanical properties of metals using the atomic force microscope