Tip-sample interactions on graphite studied using the wavelet transform