Text this: Spectral approach to the inverse problem for the field of arbitrary changing electric dipole