Atomic force microscopy of thin organic films on silicon in ultrahigh vacuum and under ambient conditions