A nondestructive method for determining the spring constant of cantilevers for scanning force microscopy