Numeric reconstruction of smooth dielectric profiles