Surface potential measurement using a rotating dynamic capacitor