Locally-constrained inverse scattering approach for electromagnetic field prediction