Investigations Of The Internal And External Magnetic Fields Of The Neutron Electric Dipole Moment Experiment At The Paul Scherrer Institute