Resonance frequencies of AFM cantilevers in contact with a surface