Resolution of Kelvin probe force microscopy in ultrahigh vacuum: comparison of experiment and simulation