Dual-mode refractive index and charge sensing to investigate complex surface chemistry on nanostructures