Sensitivity Analysis for Active Sampling, with Applications to the Simulation of Analog Circuits