Probing the electrostatic aggregation of nanoparticles with oppositely charged molecular ions