Custom incoming field defined by a Python electric-field function.
``EH_func(r)`` is called with (3,) float64 cartesian positions
(measured from the particle about which the field is expanded) and
must return the complex cartesian electric field phasor. The VSWF
coefficients about each particle are obtained by a weighted
least-squares projection of the field samples onto the regular VSWF
basis over a sphere of ``radius`` around the particle position.
The field must be source-free inside the quadrature sphere (no
currents or material contrasts); ``radius`` must therefore not
enclose any sources, and ``lMax`` should satisfy lMax ≳ k·radius
plus a few for convergence. The object is accepted directly by
``ScatteringSystem.incident_field_vector`` (via :meth:`as_incfield`)
and the coefficients can also be obtained directly with
``coeffs(bspec, pos)``.