Determination of nanomechanical properties of surfaces by atomic force microscopy using higher harmonics