Dielectric cloaks as analytical or numerical solutions of inverse scattering problems