Automated determination of electron density from electric field measurements on the Van Allen Probes spacecraft