The influence of capillary effect on atomic force microscopy measurements