Sampling representation of electromagnetic fields over 3-D domains