Correcting Parker Solar Probe Electron Measurements for Spacecraft Magnetic and Electric Fields