Spice-accurate circuit simulator for matlab