Interpolation of electromagnetic fields from nonuniform samples