Automatic kelvin probe compatible with ultrahigh vacuum