Generation of an exact three‐dimensional quadrupole electric field and superposition of a homogeneous electric field within a common closed boundary with application to mass spectrometry