A circuit optimization toolbox for MATLAB based on SPICE simulations