Atomic force microscopy study of latex film formation