Friction measurements on phase-separated thin films with a modified atomic force microscope